

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Report</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Report List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Report</g:link></span>
        </div>
        <div class="body">
            <h1>Show Report</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${report.id}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">System:</td>
                            
                            <td valign="top" class="value"><g:link controller="reportSystem" action="show" id="${report?.reportSystem?.id}">${report?.reportSystem}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Report Name:</td>
                            
                            <td valign="top" class="value">${report.reportName}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Report Title:</td>
                            
                            <td valign="top" class="value">${report.reportTitle}</td>
                            
                        </tr>
                    	                    
                        <tr class="prop">
                            <td valign="top" class="name">Show Report:</td>
                            
                            <td valign="top" class="value">${report.showReport}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Order By Clause Override:</td>
                            
                            <td valign="top" class="value">${report.orderByClauseOverride}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Designer:</td>
                            
                            <td valign="top" class="value">${report.designer}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">User Responsible:</td>
                            
                            <td valign="top" class="value">${report.userResponsible}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Comments:</td>
                            
                            <td valign="top" class="value">${report.comments}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Report Ended:</td>
                            
                            <td valign="top" class="value">${report.reportEnded}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Created:</td>
                            
                            <td valign="top" class="value">
							    <g:dateFormat value="${report.dateCreated}" format="MM/dd/yyyy"/>
							</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Report Parameters:</td>
                            
                            <td  valign="top" style="text-align:left;" class="value">
                                <ul>
                                <g:each var="r" in="${report.reportParameters}">
                                    <li><g:link controller="reportParameter" action="show" id="${r.id}">${r}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${report?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
